<?php
// If you wish for Logicfury to share tables with other databases you must fill
// in the names of the databases below and modify the $table variable accordingly
//
// For example if you wanted to share content between to sites/databases:
//
// Change: $db_name = NULL;
// To $db_name = $config['db']['name'];
//
// Then add $db_name2 = 'database_two_name'; below.
//
// And change: $table['pages'] = $db_name.$config['db']['prefix'].'content';
// To: $table['pages'] = $db_name2.$config['db']['prefix'].'content';
// Leaving the other sites $table['news'] intact.
//
//
$db_name = $this->config['db']['name'];

#### DATABASE TABLES ###########################################################
$this->table['common'] = $db_name.'.'.$this->config['db']['prefix'].'common';
$this->table['config'] = $db_name.'.'.$this->config['db']['prefix'].'config';
$this->table['log'] = $db_name.'.'.$this->config['db']['prefix'].'log';
$this->table['navigation'] = $db_name.'.'.$this->config['db']['prefix'].'navigation';
$this->table['pages'] = $db_name.'.'.$this->config['db']['prefix'].'pages';
$this->table['permissions'] = $db_name.'.'.$this->config['db']['prefix'].'permissions';
$this->table['roles'] = $db_name.'.'.$this->config['db']['prefix'].'roles';
$this->table['sessions'] = $db_name.'.'.$this->config['db']['prefix'].'sessions';
$this->table['skeleton'] = $db_name.'.'.$this->config['db']['prefix'].'skeleton';
$this->table['users'] = $db_name.'.'.$this->config['db']['prefix'].'users';
$this->table['users2roles'] = $db_name.'.'.$this->config['db']['prefix'].'users2roles';

#### TABLES DATABASE CONNECTIONS ###############################################
$this->connection['common'] =& $this->db_connection[1];
$this->connection['config'] =& $this->db_connection[1];
$this->connection['log'] =& $this->db_connection[1];
$this->connection['pages'] =& $this->db_connection[1];
$this->connection['permissions'] =& $this->db_connection[1];
$this->connection['roles'] =& $this->db_connection[1];
$this->connection['sessions'] =& $this->db_connection[1];
$this->connection['skeleton'] =& $this->db_connection[1];
$this->connection['users'] =& $this->db_connection[1];
$this->connection['users2roles'] =& $this->db_connection[1];
?>